package com.lagou.sqlSession;

import java.util.List;

/**
 * @author dcwu5
 * @date 2020-05-23
 * @description
 */
public interface SqlSession {
    /**
     * 查询所有
     * @param statement
     * @param params
     * @param <E>
     * @return
     */
    <E> List<E> selectAll(String statement,Object... params);

    /**
     * 查询一个
     * @param statement
     * @param params
     * @param <T>
     * @return
     */
    <T> T selectOne(String statement,Object... params);

    <T> T getMapper(Class<?> mapperClass);


    int update(String statement, Object... params);


}
